package com.chenfeng.ego.sso.advance;

import java.lang.reflect.Method;

import org.apache.log4j.Logger;
import org.springframework.aop.AfterReturningAdvice;
import org.springframework.stereotype.Component;

import com.chenfeng.ego.pojo.TbUser;

@Component
//后台打印日志
public class AdvanceController implements AfterReturningAdvice
{

	@Override
	public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable
	{
		TbUser user = (TbUser)args[0];
		System.out.println(user);
		Logger logger = Logger.getLogger(AdvanceController.class);
	}

	
}
